package com.b2s.scrumblr.kb.model;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by xbzheng on 2016/8/25.
 */
@Alias("User")
public class User implements Serializable{
    private static final long serialVersionUID = 1112153454654646545l;
    private String id;
    private String username;
    private String password;
    private String email;
    private String tel;
    private int status;

    private String cacheKey = "username";

    private List<Role> roles = new ArrayList<Role>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public String getCacheKey() {
        return cacheKey;
    }
}
